DisplayMode

Defines the CSS display-mode setting.

This feature is particularly useful for Progressive Web Apps (PWAs) to tailor their appearance based on the display mode. Unlike in Chrome, it does not affect the browser control, and only changes the corresponding CSS setting.

Entries

Link copied to clipboard

Represents "display-mode: browser".

Link copied to clipboard

Represents "display-mode: minimal-ui".

Link copied to clipboard

Represents "display-mode: standalone".

Link copied to clipboard

Represents "display-mode: fullscreen".

Functions

Link copied to clipboard
open fun valueOf(name: String): DisplayMode

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard
open fun values(): Array<DisplayMode>

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.